package com.itheima.Logicoperator;

public class LogicoperatorDemo1 {
    public static void main(String[] args) {
        //&并且
        System.out.println(true & true);
        System.out.println(true & false);
        System.out.println(false & true);
        System.out.println(false & false);

        //|或
        System.out.println(true | true);
        System.out.println(true | false);
        System.out.println(false | true);
        System.out.println(false | false);

        //^异或
        System.out.println(true ^ true);
        System.out.println(true ^ false);
        System.out.println(false ^ true);
        System.out.println(false ^ false);

        //!非，取反
        System.out.println(!true);
        System.out.println(!false);


    }
}
